import Vue from 'vue'
import vant from 'vant'
import 'vant/lib/index.css'
import './assets/global.less'

import server from './assets/utils/server'

Vue.config.productionTip = false
Vue.use(vant)

Vue.prototype.server = server

// import VConsole from 'vconsole'
// const vConsole = new VConsole()

function start(App) {
  new Vue({ render: h => h(App) }).$mount('#app')
}

window.addEventListener('pageshow', function(event) {
  if (event.persisted) location.reload()
})

export default start
